package staticDemo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2025-03-07
 * Time: 09:56
 */
public class StudentDemo {
    public static void main(String[] args) {
        //调用静态成员变量：类名.成员变量名
        Student.teacherName = "熊大";

        Student student1 = new Student();
        System.out.println("student1的地址值是："+ student1);
        student1.name = "zhangsan";
        student1.age = 20;
        student1.show1();

        System.out.println("===================");

        Student student2 = new Student();
        System.out.println("student2的地址值是："+ student2);
        student2.name = "lisi";
        student2.age = 30;
        student2.show1();
    }
}





